package com.walnut.dao;

import com.walnut.pojo.Food;

import java.sql.SQLException;
import java.util.List;

public interface FoodDao {

    public List<Food> select() throws SQLException;

    public Food selectById(Integer foodId) throws SQLException;

    public int selectByName(String foodName) throws SQLException;

    public int insert(Food food) throws Exception;

    public int update(Food food) throws SQLException;

    public int delete(Integer foodId) throws SQLException;

    List<Food> selectByConditions(String foodName, String priceStr, String foodStatus) throws SQLException;
}
